package com.jie.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.jie.dto.RedisCountDTO;
import com.jie.dto.UserExerciseDTO;
import com.jie.entity.UserExercise;
import com.jie.vo.ConditionVO;
import com.jie.vo.PageResult;
import com.jie.vo.UserExerciseVO;

import java.util.List;

/**
 * <p>
 * 用户锻炼表 服务类
 * </p>
 *
 * @author jie
 * @since 2024-04-20
 */
public interface IUserExerciseService extends IService<UserExercise> {


    /**
     * 添加用户锻炼次数方法
     * @param topicId
     * @return
     */
    RedisCountDTO addUserExerciseInfo(Integer topicId);

    /**
     * 添加或更新训练进度方法
     * @param userExerciseVO
     * @return
     */
    Boolean addSportUserExerciseInfo(UserExerciseVO userExerciseVO);

    List<UserExerciseDTO> getUserExerciseInfoById(Integer userId);
}
